import { createStore } from 'vuex'

import getters from './getters'
//用户的登录和退出
import user from './modules/user'
// 首页
import app from './modules/app'
// 颜色
import theme from './modules/theme'
// 动态路由
import permission from './modules/permission'

export default createStore({
  getters,
  // 模块化
  modules: {
    user,
    app,
    theme,
    permission
  }
})
